refactor dev card logic