moved flirt functions to actions.py